import {lazy} from 'react';

export const routes = [
    {
        path:'/register',
        authCheckType:'unauthed',
        component:lazy(() => 
            import('./pages/Register')
        )
    },
    {
        path:'/login',
        authCheckType:'unauthed',
        component:lazy(() => 
            import('./pages/Login')
        )
    },
    {
        path:'/',
        authCheckType:'authed',
        component:lazy(() => 
            import('./pages/Home')
        ),
        routes:[
            {
                path:'/video',
                authCheckType:'authed',
                component:lazy(() => 
                    import('./components/home/video')
                )
            },
            {
                path:'/upload',
                authCheckType:'authed',
                component:lazy(() => 
                    import('./components/home/upload')
                )
            },
            {
                path:'/',
                authCheckType:'authed',
                component:lazy(() => 
                    import('./components/home/home')
                )
            }
        ]
    }
]